
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class HolaMundoServlet extends HttpServlet {

	public void init(ServletConfig conf) throws ServletException{
		super.init(conf);
	}
	
	public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{
		res.setContentType("text/html");
		PrintWriter out = res.getWriter();
		
		out.println("<html>");
		out.println("<body>");
		out.println("<h1>Hola Mundo</h1;>");
		out.println("</body>");
		out.println("</html>");
	}
}